var GRID = require('order.aggrid');

module.exports = ['$scope','$rootScope','$location','$routeParams','$timeout',
    function($scope, $rootScope, $location, $routeParams, $timeout){

        $scope.grid = GRID.grid;

        $scope.refresh = function(){
            GRID.refresh();
            $scope.add_open = false;
            $scope.edit_open = false;

            $scope.record_add = {};
            $scope.record_edit = {};
        }

}];